package com.zhentao.util.Enum;

public enum ApiServiceExceptionEnum implements BaseExceptionEnum{
	YAN_NOT_NULL(1004,"验证码不能为空"),
	YAN_ERROR(1005,"验证码错误"),
	PASSWORD_NOT_NULL(1006,"密码不能为空"),
	PASSWORD_ERROR(1007,"密码错误"),
	TOKEN_NOT_NULL(500,"未获取到有效token"),
	RESULT_SUCCES(200,"成功"),
	RESULT_ERROR(400,"请求失败"),
    TOKEN_ERROR(1001,"token错误"),

    // 微信登录相关错误
    WECHAT_AUTH_ERROR(2001,"微信授权失败"),
    WECHAT_USER_INFO_ERROR(2002,"获取微信用户信息失败"),
    WECHAT_CONFIG_ERROR(2003,"微信配置错误"),
    SYSTEM_ERROR(5000,"系统内部错误"),
	GOOD_KUCUN_NOT_ENOUGH(500,"商品库存不足"),;



     ApiServiceExceptionEnum(Integer code , String message) {

    	 this.code=code;
    	 this.message=message;
    }
     private Integer code;

     private String message;

    @Override
	public Integer getCode() {
		// TODO Auto-generated method stub
		return code;
	}

	@Override
	public String getMessage() {
		// TODO Auto-generated method stub
		return message;
	}

}
